<!--心理咨询-->
<template> 
  <div class="xd-LearningHome-NoticeCenter">
    <el-container class="xd-el-container">  
        <router-view></router-view>  
    </el-container>
  </div> 
</template>
<script>
export default {
  name: 'CinziqaoConsult',
  data() {
    return {
      topNoticeList: [
        {"v_seach_v_notice_title":"张三","content":"2小时前完成咨询，30秒前发布动态"},
         {"v_seach_v_notice_title":"张三","content":"2小时前完成咨询，30秒前发布动态"},
          {"v_seach_v_notice_title":"张三","content":"2小时前完成咨询，30秒前发布动态"},
           {"v_seach_v_notice_title":"张三","content":"2小时前完成咨询，30秒前发布动态"},
            {"v_seach_v_notice_title":"张三","content":"2小时前完成咨询，30秒前发布动态"},
             {"v_seach_v_notice_title":"张三","content":"2小时前完成咨询，30秒前发布动态"}
      ]
    }
  },
  methods: {
    fetchNoticeList() {
      utils.post('/psychic/psychicCounselor/list', {}, res => {
        if (res.success) {
          this.topNoticeList = res.data.rows
        }
      })
    },
    goNewsDetail(id) {
      this.$router.push({ path: '/LearningHome/NoticeCenter/Detail', query: { id: id, activeMenu: '/LearningHome/NoticeCenter' } })
    }
  },
  created() {
    this.$store.commit('updateActiveMenu', '/Cinziqao/Consult')
    this.fetchNoticeList()
  }
}
</script>
<style>
.aside-list-item {
  cursor: pointer;
  padding: 5px 0
}
</style>
